package inutan.game.business;

import org.ricks.common.actor.Actor;
import org.ricks.common.actor.Actors;

/**
 * actor 管理中心
 */
public class ActorManager {



    private ActorManager(){}
    private static final ActorManager Instance = new ActorManager();
    public static ActorManager get() {return Instance;}

    /**
     * 用户退出，不阻塞业务线程 可以让玩家慢慢退出
     */
    private Actor USER_QUIT_ACTION = Actors.me().createActor("user-quit");

    public Actor getUseQuitAction() {
        return USER_QUIT_ACTION;
    }

    public void stop() {
        USER_QUIT_ACTION.shutdown();
    }

}
